<!-- html -->
<template>
  <h2 class="h2">input，表单输入绑定</h2>
  <span class="span2">数字：{{ number }}</span>
  <br>
  <input class="input2" type="number" v-model="number" />
</template>

<!-- js或ts -->
<script lang="ts">
export default {
  name: 'inputTest1'
}
</script>

<!-- js或ts -->
<script setup lang="ts">
import { ref } from 'vue'
//数据
let number = ref('')
</script>

<!-- 样式 -->
<style scoped></style>